package com.ruoyi.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单-商品关联对象 oms_order_product
 *
 * @author ruoyi
 * @date 2024-11-29
 */
@Data
public class OmsOrderProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单-产品id */
    private Long omsOrderProductId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 批次id */
    @Excel(name = "批次id")
    private Long batchId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long productNumber;

    private PmsProduct pmsProduct;

    public void setOmsOrderProductId(Long omsOrderProductId)
    {
        this.omsOrderProductId = omsOrderProductId;
    }

    public Long getOmsOrderProductId()
    {
        return omsOrderProductId;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setBatchId(Long batchId)
    {
        this.batchId = batchId;
    }

    public Long getBatchId()
    {
        return batchId;
    }
    public void setProductNumber(Long productNumber)
    {
        this.productNumber = productNumber;
    }

    public Long getProductNumber()
    {
        return productNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("omsOrderProductId", getOmsOrderProductId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("batchId", getBatchId())
            .append("productNumber", getProductNumber())
            .toString();
    }
}
